<?php

class Recetario extends BaseModel {

    static $belongs_to = array(
        array(
            '_afiliado',
            'class_name' => 'Afiliado',
            'foreign_key' => 'idafiliado'
        )
    );

    public function __construct(array $attributes = array(), $guard_attributes = true, $instantiating_via_find = false, $new_record = true) {
        parent::__construct($attributes, $guard_attributes, $instantiating_via_find, $new_record);
        $this->fecha = date("Y") . "-" . date("m") . "-" . date("d");
    }

}

?>
